package com.atguigu.client;

import com.atguigu.entity.CartInfo;
import com.atguigu.entity.SeckillProduct;
import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "shop-seckill")
public interface SeckillFeignClient {
    //1.秒杀商品列表的展示  从redis中获取
    @GetMapping("/seckill/queryAllSeckillProduct")
    public RetVal queryAllSeckillProduct();
    //2.秒杀商品的详情信息  根据skuId获取秒杀商品
    @GetMapping("/seckill/getSeckillProductBySkuId/{skuId}")
    public RetVal getSeckillProductBySkuId(@PathVariable Long skuId);
    //6.秒杀商品确认信息
    @GetMapping("/seckill/seckillConfirm")
    public RetVal seckillConfirm();
}
